package com.github.dreamroute.format;

import lombok.Data;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.Arrays;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;

import static java.util.stream.Collectors.toList;

@Data
@SpringBootApplication
public class FormatApplication {

    private Long          id;
    private String        name;
    private AtomicInteger count;

    public static void main(String[] args) {
        SpringApplication.run(FormatApplication.class, args);
        int a = 10;
        int b = 20;
        int c = a + b;
        System.err.println(c);
        List<String> result = Arrays.stream(new String[] { "1", "2", "3", "4" })
            .filter(e -> Integer.parseInt(e) % 2 == 0).collect(toList());
        System.err.println(result);
    }

}
